/*
*
* BusinessMapper.java
* @date 2019-01-26
*/
package com.lyz.myself.mapper;

import com.lyz.myself.pojo.Po.Business;

import java.util.List;
import java.util.Map;

/**
 * 商机相关信息
 */
public interface BusinessMapper {
    /**
     * 查询我负责的所有商机
     * @param map
     * @return
     */
    List<Map<String,Object>> selectBusiness(Map<String,Object> map);
    /**
     *
     * @mbg.generated 2019-01-26
     */
    int deleteByPrimaryKey(Integer business_id);

    /**
     *添加商机
     * @mbg.generated 2019-01-26
     */
    int insertBusiness(Business business);

    /**
     *
     * @mbg.generated 2019-01-26
     */
    int insertSelective(Business record);

    /**
     *根据id查看商机信息
     * @mbg.generated 2019-01-26
     */
    List<Map<String, String>> selectByPrimaryKey(Integer business_id);

    /**
     *
     * @mbg.generated 2019-01-26
     */
    int updateByPrimaryKeySelective(Business record);

    /**
     *
     * @mbg.generated 2019-01-26
     */
    int updateByPrimaryKey(Business record);
}